package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Applet;
import com.example.shoppingmall.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleTypeMapper {

    //遍历分页所有的分类
    public List<Article> getarticlelist(@Param("pageno") Integer pageno,@Param("pageSize") Integer pageSize);

    //遍历所有分类
    public List<Article> getarticlelistsall();

    //查询总条数
    public int articlecount();

    //添加文章分类
    public int AddArticle(@Param("articlename") String articlename);

    //查看详情
    public Article selArticle(Integer id);

    //编辑文章分类
    public int UpdArticle(Article article);

    //删除文章分类
    public int DelArticle(@Param("id") int id);
}
